package org.nf.ssm.dao;

import org.apache.ibatis.annotations.Param;
import org.nf.ssm.domain.Book;
import org.nf.ssm.web.vo.TypeVO;

import java.util.List;

/**
 * @author zhu
 * @date 2024-10-14
 */
public interface BookDao {
    List<Book> getAllBook(@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize);

    void addBook(Book book);

    void updateBook(Book book);

    void deleteBook(Integer bookId);

    Book getBookByName(String bookName);

    List<TypeVO> getTypeList();
}
